Optimal. Leaf size=144 \[ 2 b \sqrt {a+b x} \sqrt {c+d x}-\frac {(a+b x)^{3/2} \sqrt {c+d x}}{x}-\frac {\sqrt {a} (3 b c+a d) \tanh ^{-1}\left (\frac {\sqrt {c} \sqrt {a+b x}}{\sqrt {a} \sqrt {c+d x}}\right )}{\sqrt {c}}+\frac {\sqrt {b} (b c+3 a d) \tanh ^{-1}\left (\frac {\sqrt {d} \sqrt {a+b x}}{\sqrt {b} \sqrt {c+d x}}\right )}{\sqrt {d}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 144, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 8, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.364, Rules used = {99, 159, 163,
65, 223, 212, 95, 214} \begin {gather*} -\frac {(a+b x)^{3/2} \sqrt {c+d x}}{x}+2 b \sqrt {a+b x} \sqrt {c+d x}-\frac {\sqrt {a} (a d+3 b c) \tanh ^{-1}\left (\frac {\sqrt {c} \sqrt {a+b x}}{\sqrt {a} \sqrt {c+d x}}\right )}{\sqrt {c}}+\frac {\sqrt {b} (3 a d+b c) \tanh ^{-1}\left (\frac {\sqrt {d} \sqrt {a+b x}}{\sqrt {b} \sqrt {c+d x}}\right )}{\sqrt {d}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 65
Rule 95
Rule 99
Rule 159
Rule 163
Rule 212
Rule 214
Rule 223
Rubi steps
\begin {align*} \int \frac {(a+b x)^{3/2} \sqrt {c+d x}}{x^2} \, dx &=-\frac {(a+b x)^{3/2} \sqrt {c+d x}}{x}+\int \frac {\sqrt {a+b x} \left (\frac {1}{2} (3 b c+a d)+2 b d x\right )}{x \sqrt {c+d x}} \, dx\\ &=2 b \sqrt {a+b x} \sqrt {c+d x}-\frac {(a+b x)^{3/2} \sqrt {c+d x}}{x}+\frac {\int \frac {\frac {1}{2} a d (3 b c+a d)+\frac {1}{2} b d (b c+3 a d) x}{x \sqrt {a+b x} \sqrt {c+d x}} \, dx}{d}\\ &=2 b \sqrt {a+b x} \sqrt {c+d x}-\frac {(a+b x)^{3/2} \sqrt {c+d x}}{x}+\frac {1}{2} (a (3 b c+a d)) \int \frac {1}{x \sqrt {a+b x} \sqrt {c+d x}} \, dx+\frac {1}{2} (b (b c+3 a d)) \int \frac {1}{\sqrt {a+b x} \sqrt {c+d x}} \, dx\\ &=2 b \sqrt {a+b x} \sqrt {c+d x}-\frac {(a+b x)^{3/2} \sqrt {c+d x}}{x}+(a (3 b c+a d)) \text {Subst}\left (\int \frac {1}{-a+c x^2} \, dx,x,\frac {\sqrt {a+b x}}{\sqrt {c+d x}}\right )+(b c+3 a d) \text {Subst}\left (\int \frac {1}{\sqrt {c-\frac {a d}{b}+\frac {d x^2}{b}}} \, dx,x,\sqrt {a+b x}\right )\\ &=2 b \sqrt {a+b x} \sqrt {c+d x}-\frac {(a+b x)^{3/2} \sqrt {c+d x}}{x}-\frac {\sqrt {a} (3 b c+a d) \tanh ^{-1}\left (\frac {\sqrt {c} \sqrt {a+b x}}{\sqrt {a} \sqrt {c+d x}}\right )}{\sqrt {c}}+(b c+3 a d) \text {Subst}\left (\int \frac {1}{1-\frac {d x^2}{b}} \, dx,x,\frac {\sqrt {a+b x}}{\sqrt {c+d x}}\right )\\ &=2 b \sqrt {a+b x} \sqrt {c+d x}-\frac {(a+b x)^{3/2} \sqrt {c+d x}}{x}-\frac {\sqrt {a} (3 b c+a d) \tanh ^{-1}\left (\frac {\sqrt {c} \sqrt {a+b x}}{\sqrt {a} \sqrt {c+d x}}\right )}{\sqrt {c}}+\frac {\sqrt {b} (b c+3 a d) \tanh ^{-1}\left (\frac {\sqrt {d} \sqrt {a+b x}}{\sqrt {b} \sqrt {c+d x}}\right )}{\sqrt {d}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.37, size = 135, normalized size = 0.94 \begin {gather*} \frac {\sqrt {c+d x} \left (-a^2+b^2 x^2\right )}{x \sqrt {a+b x}}-\frac {\sqrt {a} (3 b c+a d) \tanh ^{-1}\left (\frac {\sqrt {a} \sqrt {c+d x}}{\sqrt {c} \sqrt {a+b x}}\right )}{\sqrt {c}}+\frac {\sqrt {b} (b c+3 a d) \tanh ^{-1}\left (\frac {\sqrt {b} \sqrt {c+d x}}{\sqrt {d} \sqrt {a+b x}}\right )}{\sqrt {d}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(297\) vs.
\(2(112)=224\).
time = 0.08, size = 298, normalized size = 2.07
method | result | size |
default | \(-\frac {\sqrt {b x +a}\, \sqrt {d x +c}\, \left (\ln \left (\frac {a d x +b c x +2 \sqrt {a c}\, \sqrt {\left (d x +c \right ) \left (b x +a \right )}+2 a c}{x}\right ) a^{2} d x \sqrt {b d}+3 \ln \left (\frac {a d x +b c x +2 \sqrt {a c}\, \sqrt {\left (d x +c \right ) \left (b x +a \right )}+2 a c}{x}\right ) a b c x \sqrt {b d}-3 \ln \left (\frac {2 b d x +2 \sqrt {\left (d x +c \right ) \left (b x +a \right )}\, \sqrt {b d}+a d +b c}{2 \sqrt {b d}}\right ) a b d x \sqrt {a c}-\ln \left (\frac {2 b d x +2 \sqrt {\left (d x +c \right ) \left (b x +a \right )}\, \sqrt {b d}+a d +b c}{2 \sqrt {b d}}\right ) b^{2} c x \sqrt {a c}-2 b x \sqrt {a c}\, \sqrt {\left (d x +c \right ) \left (b x +a \right )}\, \sqrt {b d}+2 a \sqrt {a c}\, \sqrt {\left (d x +c \right ) \left (b x +a \right )}\, \sqrt {b d}\right )}{2 \sqrt {\left (d x +c \right ) \left (b x +a \right )}\, x \sqrt {b d}\, \sqrt {a c}}\) | \(298\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.11, size = 893, normalized size = 6.20 \begin {gather*} \left [\frac {{\left (b c + 3 \, a d\right )} x \sqrt {\frac {b}{d}} \log \left (8 \, b^{2} d^{2} x^{2} + b^{2} c^{2} + 6 \, a b c d + a^{2} d^{2} + 4 \, {\left (2 \, b d^{2} x + b c d + a d^{2}\right )} \sqrt {b x + a} \sqrt {d x + c} \sqrt {\frac {b}{d}} + 8 \, {\left (b^{2} c d + a b d^{2}\right )} x\right ) + {\left (3 \, b c + a d\right )} x \sqrt {\frac {a}{c}} \log \left (\frac {8 \, a^{2} c^{2} + {\left (b^{2} c^{2} + 6 \, a b c d + a^{2} d^{2}\right )} x^{2} - 4 \, {\left (2 \, a c^{2} + {\left (b c^{2} + a c d\right )} x\right )} \sqrt {b x + a} \sqrt {d x + c} \sqrt {\frac {a}{c}} + 8 \, {\left (a b c^{2} + a^{2} c d\right )} x}{x^{2}}\right ) + 4 \, \sqrt {b x + a} {\left (b x - a\right )} \sqrt {d x + c}}{4 \, x}, -\frac {2 \, {\left (b c + 3 \, a d\right )} x \sqrt {-\frac {b}{d}} \arctan \left (\frac {{\left (2 \, b d x + b c + a d\right )} \sqrt {b x + a} \sqrt {d x + c} \sqrt {-\frac {b}{d}}}{2 \, {\left (b^{2} d x^{2} + a b c + {\left (b^{2} c + a b d\right )} x\right )}}\right ) - {\left (3 \, b c + a d\right )} x \sqrt {\frac {a}{c}} \log \left (\frac {8 \, a^{2} c^{2} + {\left (b^{2} c^{2} + 6 \, a b c d + a^{2} d^{2}\right )} x^{2} - 4 \, {\left (2 \, a c^{2} + {\left (b c^{2} + a c d\right )} x\right )} \sqrt {b x + a} \sqrt {d x + c} \sqrt {\frac {a}{c}} + 8 \, {\left (a b c^{2} + a^{2} c d\right )} x}{x^{2}}\right ) - 4 \, \sqrt {b x + a} {\left (b x - a\right )} \sqrt {d x + c}}{4 \, x}, \frac {2 \, {\left (3 \, b c + a d\right )} x \sqrt {-\frac {a}{c}} \arctan \left (\frac {{\left (2 \, a c + {\left (b c + a d\right )} x\right )} \sqrt {b x + a} \sqrt {d x + c} \sqrt {-\frac {a}{c}}}{2 \, {\left (a b d x^{2} + a^{2} c + {\left (a b c + a^{2} d\right )} x\right )}}\right ) + {\left (b c + 3 \, a d\right )} x \sqrt {\frac {b}{d}} \log \left (8 \, b^{2} d^{2} x^{2} + b^{2} c^{2} + 6 \, a b c d + a^{2} d^{2} + 4 \, {\left (2 \, b d^{2} x + b c d + a d^{2}\right )} \sqrt {b x + a} \sqrt {d x + c} \sqrt {\frac {b}{d}} + 8 \, {\left (b^{2} c d + a b d^{2}\right )} x\right ) + 4 \, \sqrt {b x + a} {\left (b x - a\right )} \sqrt {d x + c}}{4 \, x}, \frac {{\left (3 \, b c + a d\right )} x \sqrt {-\frac {a}{c}} \arctan \left (\frac {{\left (2 \, a c + {\left (b c + a d\right )} x\right )} \sqrt {b x + a} \sqrt {d x + c} \sqrt {-\frac {a}{c}}}{2 \, {\left (a b d x^{2} + a^{2} c + {\left (a b c + a^{2} d\right )} x\right )}}\right ) - {\left (b c + 3 \, a d\right )} x \sqrt {-\frac {b}{d}} \arctan \left (\frac {{\left (2 \, b d x + b c + a d\right )} \sqrt {b x + a} \sqrt {d x + c} \sqrt {-\frac {b}{d}}}{2 \, {\left (b^{2} d x^{2} + a b c + {\left (b^{2} c + a b d\right )} x\right )}}\right ) + 2 \, \sqrt {b x + a} {\left (b x - a\right )} \sqrt {d x + c}}{2 \, x}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (a + b x\right )^{\frac {3}{2}} \sqrt {c + d x}}{x^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 525 vs.
\(2 (112) = 224\).
time = 1.30, size = 525, normalized size = 3.65 \begin {gather*} \frac {2 \, \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d} \sqrt {b x + a} {\left | b \right |} - \frac {{\left (\sqrt {b d} b c {\left | b \right |} + 3 \, \sqrt {b d} a d {\left | b \right |}\right )} \log \left ({\left (\sqrt {b d} \sqrt {b x + a} - \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d}\right )}^{2}\right )}{d} - \frac {2 \, {\left (3 \, \sqrt {b d} a b^{2} c {\left | b \right |} + \sqrt {b d} a^{2} b d {\left | b \right |}\right )} \arctan \left (-\frac {b^{2} c + a b d - {\left (\sqrt {b d} \sqrt {b x + a} - \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d}\right )}^{2}}{2 \, \sqrt {-a b c d} b}\right )}{\sqrt {-a b c d} b} - \frac {4 \, {\left (\sqrt {b d} a b^{4} c^{2} {\left | b \right |} - 2 \, \sqrt {b d} a^{2} b^{3} c d {\left | b \right |} + \sqrt {b d} a^{3} b^{2} d^{2} {\left | b \right |} - \sqrt {b d} {\left (\sqrt {b d} \sqrt {b x + a} - \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d}\right )}^{2} a b^{2} c {\left | b \right |} - \sqrt {b d} {\left (\sqrt {b d} \sqrt {b x + a} - \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d}\right )}^{2} a^{2} b d {\left | b \right |}\right )}}{b^{4} c^{2} - 2 \, a b^{3} c d + a^{2} b^{2} d^{2} - 2 \, {\left (\sqrt {b d} \sqrt {b x + a} - \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d}\right )}^{2} b^{2} c - 2 \, {\left (\sqrt {b d} \sqrt {b x + a} - \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d}\right )}^{2} a b d + {\left (\sqrt {b d} \sqrt {b x + a} - \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d}\right )}^{4}}}{2 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (a+b\,x\right )}^{3/2}\,\sqrt {c+d\,x}}{x^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________